const Service = require('egg').Service;

class UserService extends Service {
  async getUsers() {
    // 此处存放从前端获得的数据
    let users = [
        {name: "张三"},
        {name: "李四"},
        {name: "王二麻子"}
    ]
    // 返回users这个对象
    return users;
  }
}

module.exports = UserService;